from rest_framework import serializers

from recruit.models import *

class EnterpriseSerializers(serializers.ModelSerializer):
    class Meta:
        model=Enterprise
        fields='__all__'
class RecruitsNewSerializers(serializers.ModelSerializer):
    enterprise=EnterpriseSerializers()
    class Meta:
        model=Recruit
        fields='__all__'
class EnterpriseVistSerializers(serializers.ModelSerializer):
    recruits=RecruitsNewSerializers(many=True)
    class Meta:
        model=Enterprise
        fields='__all__'
